package com.ruoyi.pyo.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pyo.mapper.PetYeahFeedbackMapper;
import com.ruoyi.pyo.domain.PetYeahFeedback;
import com.ruoyi.pyo.service.IPetYeahFeedbackService;

/**
 * 意见反馈Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-19
 */
@Service
public class PetYeahFeedbackServiceImpl implements IPetYeahFeedbackService 
{
    @Autowired
    private PetYeahFeedbackMapper petYeahFeedbackMapper;

    /**
     * 查询意见反馈
     * 
     * @param id 意见反馈主键
     * @return 意见反馈
     */
    @Override
    public PetYeahFeedback selectPetYeahFeedbackById(Long id)
    {
        return petYeahFeedbackMapper.selectPetYeahFeedbackById(id);
    }

    /**
     * 查询意见反馈列表
     * 
     * @param petYeahFeedback 意见反馈
     * @return 意见反馈
     */
    @Override
    public List<PetYeahFeedback> selectPetYeahFeedbackList(PetYeahFeedback petYeahFeedback)
    {
        return petYeahFeedbackMapper.selectPetYeahFeedbackList(petYeahFeedback);
    }

    /**
     * 新增意见反馈
     * 
     * @param petYeahFeedback 意见反馈
     * @return 结果
     */
    @Override
    public int insertPetYeahFeedback(PetYeahFeedback petYeahFeedback)
    {
        petYeahFeedback.setCreateTime(DateUtils.getNowDate());
        return petYeahFeedbackMapper.insertPetYeahFeedback(petYeahFeedback);
    }

    /**
     * 修改意见反馈
     * 
     * @param petYeahFeedback 意见反馈
     * @return 结果
     */
    @Override
    public int updatePetYeahFeedback(PetYeahFeedback petYeahFeedback)
    {
        petYeahFeedback.setUpdateTime(DateUtils.getNowDate());
        return petYeahFeedbackMapper.updatePetYeahFeedback(petYeahFeedback);
    }

    /**
     * 批量删除意见反馈
     * 
     * @param ids 需要删除的意见反馈主键
     * @return 结果
     */
    @Override
    public int deletePetYeahFeedbackByIds(Long[] ids)
    {
        return petYeahFeedbackMapper.deletePetYeahFeedbackByIds(ids);
    }

    /**
     * 删除意见反馈信息
     * 
     * @param id 意见反馈主键
     * @return 结果
     */
    @Override
    public int deletePetYeahFeedbackById(Long id)
    {
        return petYeahFeedbackMapper.deletePetYeahFeedbackById(id);
    }
}
